package cn.tx.service.Impl;


import cn.tx.dao.SelectsDao;
import cn.tx.model.Selects;
import cn.tx.service.GradeService;
import cn.tx.service.SelectsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SelectsServiceImpl implements SelectsService {

    @Autowired
    private SelectsDao selectsDao;

    @Override
    public Selects findByUserName(String username){
        return selectsDao.findByUserName(username);
    }

    @Override
    public int addSelects(Selects selects){
        return selectsDao.addSelects(selects);
    }
    @Override
    public List<Selects> findList(Map<String, Object> querymap){
        return selectsDao.findList(querymap);

    }
    @Override
    public List<Selects> findAll(){
        return selectsDao.findAll();
    }
    @Override
    public int findTotal(Map<String, Object> querymap){
        return selectsDao.findTotal(querymap);
    }
    @Override
    public int UpdateSelectsById(Selects selects){
        return selectsDao.UpdateSelectsById(selects);
    }
    @Override
    public int delete(String ids){
        return selectsDao.delete(ids);
    }

}


